package com.atguigu.service;

import com.atguigu.EnableRobot;
import com.atguigu.prop.RobotProp;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.stereotype.Service;
@ConditionalOnBean(annotation = EnableRobot.class)
@Service
public class RobotService2 {
    @Autowired
    RobotProp robotProp;
    public String sayHello() {
        return "Hello World";
    }
}
